Elementor\Modules\Variables\Classes\Rest_Api A

Total Complexity 63
Dependencies 12
Dependents 1
Total lines 562
Lines of code 458
Logical lines of code 134
Comment lines 5
Methods 30
Properties 1

Methods 30

Method Rating Maintainability Complexity Lines of code
is_valid_operations_array()
S
50 7 30
register_routes()
S
36 1 117
determine_batch_error_context()
S
44 5 52
error_response()
S
52 4 28
restore_existing_variable()
S
57 3 18
is_valid_variable_id()
S
59 3 16
is_valid_variable_label()
S
59 3 16
is_valid_variable_value()
S
59 3 16
update_existing_variable()
S
56 2 19
is_valid_order()
S
65 3 9
is_valid_watermark()
S
65 3 9
batch_error_response()
S
60 2 13
create_variable()
S
69 2 7
create_new_variable()
S
59 1 15
update_variable()
S
69 2 7
delete_variable()
S
69 2 7
restore_variable()
S
69 2 7
get_variables()
S
70 2 7
process_batch()
S
69 2 7
__construct()
S
81 1 3
enough_permissions_to_perform_ro_action()
S
80 1 3
enough_permissions_to_perform_rw_action()
S
80 1 3
trim_and_sanitize_text_field()
S
80 1 3
is_valid_variable_type()
S
74 1 4
clear_cache()
S
82 1 3
delete_existing_variable()
S
65 1 9
list_of_variables()
S
66 1 8
success_response()
S
70 1 6
prepare_error_response()
S
66 1 9
process_batch_operations()
S
68 1 7